import request from '@/utils/request'
export function getOrganization(params) {
    return request({
        url: `/dept/index`,
        method: "GET",
        params
    })
}

export function addOrganization(params) {
    return request({
        url: `/dept/store`,
        method: "POST",
        params
    })
}
// 删除科室
export function removeOrganization(params) {
    return request({
        url: `/dept/del`,
        method: "POST",
        params
    })
}

export function modificationOrganization(params) {
    return request({
        url: `/dept/save`,
        method: "POST",
        params
    })
}


export function getDetails(params) {
    return request({
        url: `/dept/show`,
        method: "get",
        params
    })
}
// 完善科室
export function handleSaveInfo(params) {
    return request({
        url: `/dept/saveInfo`,
        method: "POST",
        params
    })
}

// 获取数据字典
export function handleDictIndex(params) {
    return request({
        url: `/dict_data/dictIndex`,
        method: "GET",
        params
    })
}

// 获取组织架构
export function deptIndex(params) {
    return request({
        url: `/dept/index`,
        method: "GET",
        params
    })
}
export function deptAll(params) {
    return request({
        url: `/dept/all`,
        method: "GET",
        params
    })
}